projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844282f
)
Accept comments in input.
author
robertl
<robertl>
Sat, 20 Dec 2003 19:12:24 +0000
(19:12 +0000)
committer
robertl
<robertl>
Sat, 20 Dec 2003 19:12:24 +0000
(19:12 +0000)
gpsutil.c
patch
|
blob
|
history
diff --git
a/gpsutil.c
b/gpsutil.c
index 1b536ef504d95ea7fa59f62ff9549e83064405f2..41761c1a43806ec37968e983a2a416dfcc71025e 100644
(file)
--- a/
gpsutil.c
+++ b/
gpsutil.c
@@
-58,6
+58,8
@@
data_read(void)
waypoint *wpt_tmp;
for(;fgets(ibuf, sizeof(ibuf), file_in);) {
+ /* A sharp in column zero or an blank line is a comment */
+ if (ibuf[0] == '#' || ibuf[0] == '\n') continue;
sscanf(ibuf, "%s %le%c %le%c %ld%c %30[^,] %c",
name, &lat, &latdir, &lon, &londir,
&alt, &alttype, desc, icon);